import {createSlice} from "@reduxjs/toolkit";

const articleStore = createSlice({
    name: 'article',
    initialState: {
        articleList: []
    },
    reducers: {
        setArticleList(state, action) {
            state.articleList = action.payload
        }
    }
});

const {setArticleList} = articleStore.actions;
const articleReducer = articleStore.reducer;
export {setArticleList};
export default articleReducer;